package com.qdxwx.data.service.account;


import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.account.UserAccountDetail;

import java.util.List;

/**
 * UserAccountDetail接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface UserAccountDetailService {


    int insert(UserAccountDetail userAccountDetail);

    UserAccountDetail get(Long id);

    //支付宝订单号查询账户历史，防止同一订单号多次充值
    UserAccountDetail getByOrderId(int orderId, long userId);

    List<UserAccountDetail> getList(UserAccountDetail userAccountDetail, PageRequest pageRequest);

    long count(UserAccountDetail accountHistory);

    //账户合并更新userId
    int updateCombine(long userId, long userId1);
}